﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace eSSP_example.Cpi
{
    public class OnlineStatus
    {
        public const int ONLINE = 0x1;  ///< Return value: Success
        public const int OFFLINE = 0x0;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="onlineStatus"></param>
        /// <returns></returns>
        public static string getStrReturnValue(int onlineStatus)
        {
            switch (onlineStatus)
            {
                case ONLINE:
                    return "Online";

                case OFFLINE:
                    return "Offline";

                default:
                    return "Unknown online status";
            }
        }
    }
}
